import http from '@/utils/http'

const api = {
    setShopWorkStatus: 'workLog/setShopWorkStatus',
    checkPassword: 'passport/checkPassword',
    getHelpInfo: 'article/helpCategory'
}

// 结束营业
export function setShopWorkStatus(data: { status: number }) {
    return http.post(api.setShopWorkStatus, data)
}

// 校验密码
export function checkPassword(data: { username: string; password: string }) {
    return http.post(api.checkPassword, data)
}

// 获取帮助信息
export function getHelpInfo(data?: any) {
    return http.post(api.getHelpInfo, data)
}